<?php $this->JQuery()->addJavascriptFile(Ac_Util::getImageBaseUrl('/js/tipsy/jquery.tipsy.v-'.AC_VERSION.'.js'))?>
<?php $this->headLink()->appendStylesheet(Ac_Util::getImageBaseUrl('/css/tipsy/tipsy.v-'.AC_VERSION.'.css')) ?>
<?php $this->JQuery()->javascriptCaptureStart()?>
    $('document').ready(function(){
    	var temp = $j('.validation img').attr('src');
    	$j('.validation img').remove();
    	$j('.validation').append('<img height="50" width="240" src="' + temp + '">');
    	
    	temp = $j('#newaccount-newsletter');
    	$j('#newaccount-newsletter').remove();
    	$j('.newsletter label').prepend(temp);
    	
    	temp = $j('.validation .errors');
    	$j('.validation .errors').remove();
    	$j('.validation').append(temp);
    	$j('.validation .errors').css('float', 'left');
    	
        ValidateAjax.initialize('form_register_personal_new', '/user/validate-register-personal-new');
        $j('#tips').tipsy({html: true, fallback: "<p style='text-align:left'><?php echo $this->t('Company Accounts:<br>- Are specially designed to promote businesses<br>- Auto-list your Company details in AsiaClassified\'s Business Directory - Free<br>- Allows you to designate sub-accounts for your sales team<br>- Provide consolidated reports across all accounts (Primary and Subs)<br>- Access AsiaClassified\'s growing community</p>')?>" });       });
    

<?php $this->JQuery()->javascriptCaptureEnd()?>
<?php  $this->form_register_personal_new->setAttrib('id', 'form_register_personal_new'); ?>
<?php $to_be_confirmed_ads = new Zend_Session_Namespace('to_be_confirmed_ads');?>
<?php if (!empty($to_be_confirmed_ads->arr)):?>
    <?php $this->headLink()->appendStylesheet(Ac_Util::getImageBaseUrl('/css/custom_post_ad.v-'.AC_VERSION.'.css'))?>
<?php endif;?>
<?php $this->headLink()->appendStylesheet(Ac_Util::getImageBaseUrl('/css/custom_signup.v-'.AC_VERSION.'.css'))?>
<?php //$this->headLink()->appendStylesheet(Ac_Util::getImageBaseUrl('/css/custom_new.v-'.AC_VERSION.'.css'))?>
<?php $this->placeholder('container-class')->set('signup personal') ?>

<section class="main_section">

<?php if (!empty($to_be_confirmed_ads->arr)):?>
   	<section class="nav">      
	   	<h3><?php echo $this->t('刊登廣告')?></h3>
        <ol>
          <li><?php echo $this->t('<span>1</span><em>選擇分類</em>')?></li>
          <li><?php echo $this->t('<span>2</span><em>建立你的廣告</em>')?></li>
          <li class="selected"><?php echo $this->t('<span>3</span><em>登入</em>')?></li>
        </ol>
	</section>
<?php endif;?> 
    <section class="signup">
        <h3><?php echo $this->t('申请个人账户')?></h3>
        <section class="personal box">
            <h2><?php echo $this->t('申请个人账户')?></h2>
      	    <?php echo $this->form_register_personal_new;?>
        </section>
    </section>
    <section class="more">
        <h3><?php echo $this->t('其他选择…')?></h3>
            <section class="acc_type box">
                <section class="business">
                    <h2><?php echo $this->t('<em>商业账户</em>给力推广, 費用全免')?></h2>
                    <p><?php echo $this->t('享有个人账户的所有优势：')?></p> 
                    <ul>
                        <li><?php echo $this->t('免费发布信息')?></li>
                        <li><?php echo $this->t('简单易操作的信息管理系统')?></li>
                        <li><?php echo $this->t('注册所用邮箱可直接收取联络私信')?></li>                
                    </ul>        
                    <p><?php echo $this->t('以及商業用戶尊享強化功能：')?></p>
                    <ul>
                        <li><?php echo $this->t('自动将你的公司资料发布在<em>商业指南</em>')?></li>
                        <li><?php echo $this->t('免费大量上传服务，<em>无需审核发布过百信息</em>')?></li>
                    </ul>
                    <p class="button"><a href="/user/register-business"><?php echo $this->t('注册')?></a></p>
                </section>
                <section class="login">
                    <p<?php echo $this->t('')?>已经是会员？</p>
                    <p class="button"><a href="/user/login"><?php echo $this->t('登录')?></a></p>
                </section>
            </section>
        </section>
    </section>
    <aside class="aside"> </aside>
